home *** CD-ROM | disk | FTP | other *** search
/ PC Answers 1995 May / PC Answers CD-ROM 7 (Future Publishing) (May 1995).iso / vbits / code / mee / vbdao / visdata / imptbls.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-10-06  |  2.0 KB  |  77 lines

  1. VERSION 2.00
  2. Begin Form ImpTbls 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Import Tables"
  6.    ClientHeight    =   1560
  7.    ClientLeft      =   2280
  8.    ClientTop       =   3165
  9.    ClientWidth     =   6165
  10.    ControlBox      =   0   'False
  11.    Height          =   1965
  12.    Left            =   2220
  13.    LinkTopic       =   "Form2"
  14.    ScaleHeight     =   1560
  15.    ScaleWidth      =   6165
  16.    Top             =   2820
  17.    Width           =   6285
  18.    Begin CommandButton cCloseBtn 
  19.       Cancel          =   -1  'True
  20.       Caption         =   "Close"
  21.       Height          =   375
  22.       Left            =   4920
  23.       TabIndex        =   2
  24.       Top             =   600
  25.       Width           =   1095
  26.    End
  27.    Begin CommandButton cImportBtn 
  28.       Caption         =   "Import"
  29.       Default         =   -1  'True
  30.       Enabled         =   0   'False
  31.       Height          =   375
  32.       Left            =   4920
  33.       TabIndex        =   1
  34.       Top             =   120
  35.       Width           =   1095
  36.    End
  37.    Begin ListBox cTables 
  38.       Height          =   1005
  39.       Left            =   120
  40.       TabIndex        =   0
  41.       Tag             =   "OLS"
  42.       Top             =   480
  43.       Width           =   4695
  44.    End
  45.    Begin Label Label1 
  46.       BackColor       =   &H00C0C0C0&
  47.       Caption         =   "&Tables in "
  48.       Height          =   255
  49.       Left            =   120
  50.       TabIndex        =   3
  51.       Top             =   120
  52.       Width           =   4575
  53.    End
  54. Sub cCloseBtn_Click ()
  55.   Unload Me
  56. End Sub
  57. Sub cImportBtn_Click ()
  58.   Import (cTables)
  59. End Sub
  60. Sub cTables_Click ()
  61.   cImportBtn.Enabled = True
  62. End Sub
  63. Sub cTables_DblClick ()
  64.   Call cImportBtn_Click
  65. End Sub
  66. Sub Form_Load ()
  67.   cTables.Clear
  68.   For i = 0 To gImpDB.TableDefs.Count - 1
  69.     If (gImpDB.TableDefs(i).Attributes And DB_SYSTEMOBJECT) = 0 Then
  70.       cTables.AddItem gImpDB.TableDefs(i).Name
  71.     End If
  72.   Next
  73. End Sub
  74. Sub Form_Paint ()
  75.   Outlines Me
  76. End Sub
  77.